package com.wang.hashtest;

import java.util.HashMap;
import java.util.Map;

//Lambda表达式
public class HashMapTest5 {
    public static void main(String[] args) {
        Map<Integer,String > map = new HashMap<>();
        map.put(1,"java");
        map.put(2,"c++");
        map.put(3,"golang");
        map.put(4,"python");
        map.put(5,"php");
        map.forEach((key,value) -> {
            System.out.println(key);
            System.out.println(value);
        });
    }
}
